package org.jeecg.modules.engineering.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engineering.entity.EquipCollectItem;
import org.jeecg.modules.engineering.entity.EquipEventSort;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 设备事件分类表
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
public interface IEquipEventSortService extends IService<EquipEventSort> {
    List<EquipEventSort> selectAll();

    void saveWithRedis(EquipEventSort entity);

    boolean updateWithRedis(EquipEventSort entity);

    void removeWithRedis(String id);

    void removeFromRedis(String id);

    void removeFromRedis(EquipEventSort entity);

    EquipEventSort getFromRedisByOtherKey(String key);

    EquipEventSort getFromRedisById(String id);

    Result<String> refreshToRedis();

    void batchRemoveWithRedis(List<String> asList);

    IPage<EquipEventSort> selectSqlList(Page<EquipEventSort> page, String sortName, String sortCode);
}
